﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Jy123.Web.Manage.User
{
    public partial class Face : MgConfig//System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Verify("Face.aspx");
        }

        protected void btnAddFace_Click(object sender, EventArgs e)
        {
            //if (Page.IsValid)
            //{
                Jy123.Model.User_Face mFace = new Jy123.Model.User_Face();
                Jy123.BLL.User_Face bllFace = new Jy123.BLL.User_Face();
                mFace.InCode = txtInCode.Text;
                mFace.Title = txtTitle.Text;
                mFace.FilePath = txtFilePath.Text;
                mFace.Description = txtDescription.Text;
                if (bllFace.Add(mFace) > 0)
                {
                    Response.Redirect("Face.aspx");
                    MessageBox("添加成功", MsgType.ok);
                }
                else
                {
                    MessageBox("添加失败", MsgType.error);
                }
            //}
        }
    }
}
